package cn.meizhu.base.mapper;

import cn.meizhu.base.query.BaseQuery;
import cn.meizhu.org.domain.Department;
import cn.meizhu.org.query.DepartmentQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T findById(Long id);
    List<T> findAll();
    Long queryCount(BaseQuery baseQuery);
    List<T> queryData(BaseQuery baseQuery);
}
